package com.huawei.appgallery.festivalanimation.particle.modifiers;

import com.huawei.appgallery.festivalanimation.particle.Particle;
import java.util.ArrayList;
import java.util.List;

public class ParticleModifier implements IParticleModifier {
    private List<IParticleModifier> mModifiers = new ArrayList();

    public void modify(Particle particle, long j) {
        for (int i = 0; i < this.mModifiers.size(); i++) {
            ((IParticleModifier) this.mModifiers.get(i)).modify(particle, j);
        }
    }

    public void addModifier(IParticleModifier iParticleModifier) {
        if (this.mModifiers == null) {
            this.mModifiers = new ArrayList();
        }
        this.mModifiers.add(iParticleModifier);
    }
}
